package com.kaifamiao.statements;

public class Pig {
    public static void main(String[] args) {
        final int begin = 97;
        final int bound = 26;
        int rand = (int)(Math.random() * bound);
        System.out.println( rand );
        char ch = (char)(begin + rand);
        System.out.println( ch );

        //if( ch >= 97 && ch <= 122 ){
        if( ch >= 'a' && ch <= 'z' ) {
            System.out.println( "小写英文字母" );
        }

        if( ch >= 'A' && ch <= 'Z' ) {
            System.out.println( "大写英文字母" );
        }
    }
}
